import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';
import { IonicStorageModule } from '@ionic/storage';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { HttpModule }from '@angular/http';
import { Geolocation } from '@ionic-native/geolocation'
import { Camera } from '@ionic-native/camera'
import { File } from '@ionic-native/file'
import { FileTransfer,FileTransferObject } from '@ionic-native/file-transfer'
import { FilePath } from '@ionic-native/file-path'

//导入页面
import { MyApp } from './app.component';
import { AroundPage } from '../pages/around/around';
import { GroupPage } from '../pages/group/group';
import { MessagePage } from '../pages/message/message';
import { PersonalPage } from '../pages/personal/personal';
import { TabsPage } from '../pages/tabs/tabs';
import { ModifyDataPage } from '../pages/modify-data/modify-data';
import { InformationOfOthersPage } from '../pages/information-of-others/information-of-others';
import { ChangePurposePage } from '../pages/change-purpose/change-purpose';
import { ChatDetailPage } from '../pages/chat-detail/chat-detail';
import { ModifyTextPage } from '../pages/modify-text/modify-text';
import { LoginPage } from '../pages/login/login';
import { RegisterPage } from '../pages/register/register';
import { Register2Page } from '../pages/register2/register2';
import { FindPage } from '../pages/find/find';
import { Find2Page } from '../pages/find2/find2';
import { IndexPage } from '../pages/index/index';
import { ModifyPhotoPage } from '../pages/modify-photo/modify-photo';
import { ModifySexPage } from '../pages/modify-sex/modify-sex';
import { ModifyAgePage } from '../pages/modify-age/modify-age';
import { GetGroupUsersPage } from '../pages/get-group-users/get-group-users'
 
//导入表情 
import { EmojiProvider } from '../providers/emoji/emoji';
import { ComponentsModule } from '../components/components.module'
import { ChatServiceProvider } from '../providers/chat-service/chat-service';

@NgModule({
  declarations: [
    MyApp,
    AroundPage,
    GroupPage,
    MessagePage,
    PersonalPage,
    TabsPage,
    ModifyDataPage,
    InformationOfOthersPage,
    ChangePurposePage,
    ChatDetailPage,
    ModifyTextPage,
    LoginPage,
    RegisterPage,
    FindPage,
    IndexPage,
    Register2Page,
    Find2Page,
    ModifyPhotoPage,
    ModifySexPage,
    ModifyAgePage,
    GetGroupUsersPage
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp),
    ComponentsModule,
    HttpClientModule,
    HttpModule,
    IonicStorageModule.forRoot()
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    AroundPage,
    GroupPage,
    MessagePage,
    PersonalPage,
    TabsPage,
    ModifyDataPage,
    InformationOfOthersPage,
    ChangePurposePage,
    ChatDetailPage,
    ModifyTextPage,
    LoginPage,
    RegisterPage,
    FindPage,
    IndexPage,
    Register2Page,
    Find2Page,
    ModifyPhotoPage,
    ModifySexPage,
    ModifyAgePage,
    GetGroupUsersPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    EmojiProvider,
    Geolocation,
    ChatServiceProvider,
    File,
    FileTransfer,
    FilePath,
    Camera,
  ]
})
export class AppModule {}
